/*
 * Created on Jan 17, 2005
 */
package org.vectrics.security;

import org.vectrics.common.db.RecordObject;
import org.vectrics.user.UserPrivilegeType;

/**
 * @author mmoore
 */
public class UserPrivilegeToUserPrivilegeXRef implements RecordObject {
	private Long id = null;
	private UserPrivilegeType authUserPrivilegeType = null;
	private UserPrivilegeType targetUserPrivilegeType = null;
	private ProtectedResource protectedResource = null;

	/**
	 *
	 */
	public UserPrivilegeToUserPrivilegeXRef() {
		super();
	}

	public String toString() {
		return("[" + "id=" + id + "|authUserPrivilegeType=" + authUserPrivilegeType.getCode() + "|targetUserPrivilegeType="
				+ targetUserPrivilegeType.getCode() + "|protectedResource=" + protectedResource.getCode() +
				"]");
	}
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}
	public UserPrivilegeType getAuthUserPrivilegeType() {
		return authUserPrivilegeType;
	}

	public void setAuthUserPrivilegeType(UserPrivilegeType userPrivilegeType) {
		this.authUserPrivilegeType = userPrivilegeType;
	}

	public UserPrivilegeType getTargetUserPrivilegeType() {
		return targetUserPrivilegeType;
	}

	public void setTargetUserPrivilegeType(UserPrivilegeType userPrivilegeType) {
		this.targetUserPrivilegeType = userPrivilegeType;
	}
	
	
/*
	public boolean getCanView() {
		return(canView);
	}

	public void setCanView(boolean value) {
		this.canView = value;
	}

	public boolean getCanEdit() {
		return(canEdit);
	}

	public void setCanEdit(boolean value) {
		this.canEdit = value;
	}

	public boolean getCanCreate() {
		return(canCreate);
	}

	public void setCanCreate(boolean value) {
		this.canCreate = value;
	}

	public boolean getCanRemove() {
		return(canRemove);
	}

	public void setCanRemove(boolean value) {
		this.canRemove = value;
	}
	*/
	/**
	 * @return Returns the protectedResource.
	 */
	public ProtectedResource getProtectedResource() {
		return protectedResource;
	}
	/**
	 * @param protectedResource The protectedResource to set.
	 */
	public void setProtectedResource(ProtectedResource protectedResource) {
		this.protectedResource = protectedResource;
	}
}
